<?php

namespace App\Http\Controllers\Api;

use App\Http\Resources\GoodsCategoryResource;
use Illuminate\Http\Request;
use App\Http\Queries\GoodsCategoryQuery;
class GoodsCategoryController extends Controller
{
    public function index(GoodsCategoryQuery $query){
        GoodsCategoryResource::wrap('data');
        return GoodsCategoryResource::collection($query->get());
    }
}
